Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KEP96 - Rename Tasks and Evaluations to Hooks #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

agardnerIT
Copy link

KEP96

Proposes we (as a project) change the way we talk about KeptnTasks and KeptnEvaluations.

Rather than confusing users, this KEP proposes we discuss both as "hooks". There are thus two types of hook a task and an evaluation.

Note: This doesn't change the underlying implementation of CRDs. It's (probably) purely a documentation / messaging thing.

@agardnerIT agardnerIT requested review from a team as code owners August 6, 2023 00:44

- Pre-deployment at a workload level
- Pre-deployment at an application level
- Pre-deployment at a workload level

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean "Post-deployment at a workload level" here?

- Pre-deployment at a workload level
- Pre-deployment at an application level
- Pre-deployment at a workload level
- Post-deployment at a workload level

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may be missing something but it seems like this requires changing the names of the annotations and sort of blurring the distinction between evaluations and tasks, at least at the configuration level. Do we have evaluations and tasks that are executed only at the KeptnApp level? I thought all the evaluations and tasks defined for the individual workloads were executed for any KeptnApp that includes those workloads.

I'm looking forward from comments from people with more knowledge!


## Explanation

Hooks are a fairly standard and well understood software mechanism. So rather than referring to tasks and evaluations - then attempting to explain the difference.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me, the distinction between an evaluation and a task is fairly obvious. What I think is confusing is the apparent inability to do an evaluation then trigger a particular task as a result of the evaluation, although this is a deliberate design decision. To clarify this, we need a good, complex example of a KeptnApp that includes multiple workloads and uses ArgoCD to implement the "if-this-evaluation-result-then-do-this-logic" -- and I'm not sure whether either the KeptnEvaluation or KeptnTask will be part of that logic.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"To me, the distinction between an evaluation and a task is fairly obvious".

In a way, that's exactly my point in this PR. We (as those who know about Keptn) know about these terms. But if you are new to Keptn (and probably new or new-ish) to DORA / SRE / SLIs / SLOs etc. then a Keptn Task and a Keptn Evaluation will mean very little to you.

The term "hooks" is more generic, more widely used and thus more approachable. We don't remove the Keptn Task and Keptn Evaluation nomenclature - we just explain that both "Keptn tasks and Keptn evaluations" are types of hooks.

Copy link
Member

@mowies mowies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea! Although I think we should update this in the docs at least so that we get the word out as well. The code probably doesn't need to change at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants